@import 'variables.less';

/*设置页统一样式*/
.settings-wrap{
    /*margin-top: 0.5rem;*/
    margin-left: 0.1rem;
    margin-bottom: 0.1rem;
    display: flex;
    height: calc(100% - 0.1rem);
    padding: 0;
    padding-right: 0.1rem;
}
.layui-btn+.layui-btn{
    margin: 0;
}
.table-wrap{
    min-width: 0;
    height: calc(100% - 0.6rem);
    flex:auto;
    display: flex;
    margin-top: 0.55rem;
}
.operate-btns{
    width: 1rem;
    margin-top: 0.4rem;
    margin-left: 0.1rem;
    flex: none;
    border: 1px solid @bdcolor;
    border-radius: 5px;
}
.operate-btns button{
    width: 100%;
    padding: 0;
    border: 0;
}
.layui-table{
    margin: 0;
}
.layui-table-tool{
    display: none;
}
.xm-select-title{
    width: 100% !important;
}

.layui-form-label{
    width: 80px;
}
.capacity-param .layui-form-label{
    width: 100px;
}
.page-left{
    margin-right: 5px;
}
.page-left, .page-right{
    width: 50%;
}
.page-left > div,.page-right > div{
    height: 100%;
}

.filters[meterManage]{
    margin-top: 0.55rem;
    margin-bottom: 0;
}
.settings-wrap[meterManage]{
    margin-left: 0.1rem;
    margin-bottom: 0.1rem;
    padding: 0;
    display: flex;
    height: calc(100% - 1.1rem );
    flex-direction: row-reverse;
}
section[meterManage] .operate-btns{
    width: 1rem;
    height: calc(100% - 2px);
    margin-top: 0;
    margin-left: 0.1rem;
    flex: none;
    border: 1px solid @bdcolor;
    border-radius: 5px;
}
section[meterManage] .table-wrap{
    min-width: 0;
    height: 100%;
    flex: auto;
    margin-top: 0;
}

section[capacity] .operate-btns{
    width: 1.6rem;
    max-width: 110px;
}

section[speedsetting] .add-wrap{
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    text-align: right;
    background-color: @thover;
    border: 1px solid @bdcolor;
}

section[userManger]{
    flex-direction: row-reverse;
}

.layui-table td, .layui-table th{
    min-height: 0.2rem;
    line-height: 0.2rem;
    font-size: 0.14rem;
}

/*小屏幕下 style*/
@media only screen and (max-width: 768px){
    section[deviceTable], section[capacity],section[speedsetting],section[userManger]{
        display: block;
        position: relative;
        z-index: 2999;
    }
    section[deviceTable] .operate-btns{
        position: fixed;
        top: 0.65rem;
        right: 15px;
        margin-top: 0;
    }

    section[capacity], section[userManger]{
        height: calc(100% - 0.9rem);
    }
    section[capacity] .table-wrap{
        display: block;
        margin-top: 0.8rem;
        height: 100%;
    }

    section[speedsetting]{
        height: calc(100% - 0.7rem);
    }
    section[speedsetting] .table-wrap{
        display: block;
        margin-top: 0.6rem;
        height: 100%;
    }

    section[capacity] .page-left, section[capacity] .page-right,
    section[speedsetting] .page-left, section[speedsetting] .page-right{
        width: 100%;
        height: 50%;
    }

    section[userManger]{
        flex-direction: column;
        margin-right: 0.1rem;
        width: calc(100% - 0.2rem);
    }
    section[userManger] .operate-btns{
        width: 100%;
        height: initial;
        margin-left: 0;
        margin-bottom: 5px;
        margin-top: 0.55rem;
        border: 0;
    }
    section[userManger] .operate-btns button{
        width: calc(100% / 3 - 5px);
        border: 0;
        padding: 0;
        border: 1px solid @bdcolor;
    }
    section[userManger] .table-wrap{
        margin-top: 5px;
    }

    section[meterManage]{
        flex-direction: column;
        margin-right: 0.1rem;
        width: calc(100% - 0.2rem);
    }
    section[meterManage] .operate-btns{
        width: 100%;
        height: initial;
        margin-left: 0;
        margin-bottom: 5px;
        border: 0;
    }
    section[meterManage] .operate-btns button{
        width: calc(100% / 3 - 5px);
        border: 0;
        padding: 0;
        border: 1px solid @bdcolor;
    }
    section[meterManage] .table-wrap{
        margin-top: 0.55rem;
    }
}